package cn.iocoder.yudao.module.nginxui.controller.admin.httpconfig.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - Nginx HTTP块主配置分页 Request VO")
@Data
public class HttpConfigPageReqVO extends PageParam {

    @Schema(description = "主配置ID", example = "26247")
    private Long configId;

    @Schema(description = "是否启用sendfile机制")
    private Integer sendfile;

    @Schema(description = "长连接超时时间（秒）")
    private Integer keepaliveTimeout;

    @Schema(description = "客户端最大请求体大小")
    private String clientMaxBodySize;

    @Schema(description = "全局日志格式定义")
    private String logFormat;

    @Schema(description = "HTTP块额外自定义配置")
    private String extraHttpConfig;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}